package com.gmzg.gmzgnews.news.fragments;


import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;

import com.gmzg.gmzgnews.R;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * A simple {@link Fragment} subclass.
 */
public class News_ImageView_First_Fragment extends BaseFragment {


    @BindView(R.id.news_head_image_first_imageView)
    ImageView mNewsHeadImageFirstImageView;
    @BindView(R.id.news_head_image_first_txtView)
    TextView mNewsHeadImageFirstTxtView;

    public News_ImageView_First_Fragment() {
        // Required empty public constructor
    }

    @Override
    public String getFragmentTitle() {
        return null;
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        View ret = inflater.inflate(R.layout.fragment_news__image_view__first_, container,
                false);
        ButterKnife.bind(this, ret);
        return ret;
    }

    @OnClick(R.id.news_head_image_first_imageView)
    public void onClick() {
        Toast.makeText(getContext(), "我被点击了", Toast.LENGTH_SHORT).show();
    }
}
